Release 10.1A: OpenEdge Development:
Progress 4GL Reference
INITIALIZE-DOCUMENT-TYPE( ) method
Creates a new XML document, initializes the document based on the referenced DTD, and creates its root node.
Return type: LOGICAL Applies to: X-document object handle
namespace-uriA character expression representing the namespace Uniform Resource Identifier (URI) you want associated with the root node of the XML document. The
namespace-urimust be unique and persistent.root-node-nameA character expression representing the name of the root node as defined in the XML document. If you are using namespaces and you want to associate a prefix with the namespace, you must qualify this node name with the
namespace-uriand a colon character prefix (for example,namespace-uri:root-node-name). You must explicitly set the xmlns attribute on the root node.public-idAn optional character expression representing the public ID of the DTD. Currently, there is no way to retrieve a DTD based on a public ID.
system-idA required character expression representing the system ID of the DTD. This contains the path to the DTD which is either a file system path or an HTTP URL. The Progress parser uses this information to retrieve the DTD when parsing the document.
ExampleThe following example initializes an X-document with a DTD reference and adds the proper namespace declaration, if the namespace URI is not empty:
|
Copyright © 2005 Progress Software Corporation www.progress.com Voice: (781) 280-4000 Fax: (781) 280-4095 |